/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package questao02;

/**
 *
 * @author mdneto
 */
public class Square extends Shape{
    private int base;
    private int altura;
    protected float getArea(){
        return this.getBase() * this.getAltura();
    }
    
    protected String getName() {
        return "Quadrado";
    }
    
    protected float getVolume(){
        return 0;
    }

    public int getBase() {
        return base;
    }

    public void setBase(int base) {
        this.base = base;
    }

    public int getAltura() {
        return altura;
    }

    public void setAltura(int altura) {
        this.altura = altura;
    }
}
